package com.kaishengit.service;

import com.kaishengit.dao.IndexDao;
import com.kaishengit.pojo.User;

public class IndexService {
    private IndexDao indexDao;

    public User login(User user) {
        User u = indexDao.findByUnique("email", user.getEmail());
        return u;
    }
    
    //get set
    public IndexDao getIndexDao() {
        return indexDao;
    }

    public void setIndexDao(IndexDao indexDao) {
        this.indexDao = indexDao;
    }
}
